package org.cainiao.servlet.spring.ioc.config;

import org.springframework.beans.factory.config.BeanPostProcessor;
import org.springframework.lang.NonNull;

/**
 * <br />
 * <p>
 * Author: Cai Niao(wdhlzd@163.com)<br />
 */
public class InstantiationTracingBeanPostProcessor implements BeanPostProcessor {

    public Object postProcessAfterInitialization(Object bean, @NonNull String beanName) {
        System.out.println("Bean '" + beanName + "' created : " + bean.toString());
        return bean;
    }
}
